/*
 * image.cpp
 *
 *  Created on: 18/12/2008
 *      Author: smaxll
 */

#include "image.hpp"
#include "SDL_image.h"

namespace image {

void set_wm_icon(){
    SDL_Surface *cy_icon;
    cy_icon = IMG_Load("images/cyonline_icon.jpg");

    if(!cy_icon){
        printf("IMG_Load: %s\n", IMG_GetError());
    } else {
        SDL_WM_SetIcon(cy_icon, NULL);
    }
}

}
